package org.example.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum CategoryStatusEnum {

    ENABLE(0,"启用"),
    DISABLE(1,"禁用");

    @EnumValue
    private final Integer code;

    @JsonValue
    private final String desc;


    @Override
    public String toString() {
        return this.desc;
    }


}
